package com.hello;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;

public class TaxiAutoDialer {
	
private Activity activity;
	
	public TaxiAutoDialer(Activity cont){
		this.activity = cont;
	}
	
    void callACab(String phoneNumber)
    {
    	String number = "tel:" + phoneNumber;
        Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(number)); 
        activity.startActivity(callIntent);       
    } 

}
